<div class="module-ad-create">
    <div class="create-hd">
        <em class="title" v-if="doType === config.DO_TYPE_CREATE">免費創建廣告</em>
        <em class="title" v-if="doType === config.DO_TYPE_UPDATE">編輯廣告</em>
        <span class="title-sub">已創建的廣告可以在<a href="./c2c.html#/order/advert">我的廣告</a>中進行編輯和刪除。</span>
    </div>
    <!--<div class="create-tip">-->
        <!--<i class="icon icon-info"></i>-->
        <!--<template v-if="type === config.AD_TYPE_SELL">-->
            <!--<span class="text">為維護平台秩序，只有經過認證的KYC-1用戶才能發佈此廣告</span>-->
            <!--<a href="javascript:;" class="link" v-if="level === 'LEVEL0'">去KYC</a>-->
        <!--</template>-->
        <!--<template v-if="type === config.AD_TYPE_BUY">-->
            <!--<span class="text">此廣告發佈成功後，如有賣家有意向，會聯繫您線下完成交易。</span>-->
        <!--</template>-->
    <!--</div>-->

    <help help-type="info">
        <div slot="comp-help-content" class="comp-help-content">
            <template v-if="type === config.AD_TYPE_SELL">
                <span class="text" style="color: #666; font-size: 14px;">為維護平台秩序，只有經過認證的KYC-1用戶才能發佈此廣告</span>
                <a href="./account.html#/certification" class="link" v-if="level === 'LEVEL0'">去KYC</a>
            </template>
            <template v-if="type === config.AD_TYPE_BUY">
                <span class="text" style="color: #666; font-size: 14px;">此廣告發佈成功後，如有賣家有意向，會聯繫您線下完成交易。</span>
            </template>
        </div>
    </help>

    <form class="m-form-page" name="form" action="javascript:;" v-if="doType === config.DO_TYPE_CREATE">
        <div class="col-row" style="margin-bottom: 16px;">
            <div class="col-label">
                <label>我想要</label>
            </div>
            <div class="col-input">
                <div class="tabs tabs--sell" v-if="type === config.AD_TYPE_SELL">
                    <a class="tab-btn" href="javascript:;" @click="setType(config.AD_TYPE_SELL)">在線售出</a>
                    <a class="tab-btn" href="javascript:;" @click="setType(config.AD_TYPE_BUY)">在線求購</a>
                </div>
                <div class="tabs tabs--buy" v-if="type === config.AD_TYPE_BUY">
                    <a class="tab-btn tab-btn-left" href="javascript:;" @click="setType(config.AD_TYPE_SELL)">在線售出</a>
                    <a class="tab-btn" href="javascript:;" @click="setType(config.AD_TYPE_BUY)">在線求購</a>
                </div>
            </div>
        </div>
    </form>

    <creat-sell v-if="type === config.AD_TYPE_SELL"
                :nick-name="nickName"
                :level="level"></creat-sell>
    <creat-buy v-if="type === config.AD_TYPE_BUY"
               :level="level"></creat-buy>
</div>